<%@ include file="/WEB-INF/common/taglibs.jsp"%>
<div class="resBtn">
	<a href="#"> <span class="icon16 minia-icon-list-3"></span>
	</a>
</div>
<!--Sidebar collapse button-->
<div class="collapseBtn leftbar">
	<a href="#" class="tipR" title="Hide sidebar"> <span
		class="icon12 minia-icon-layout"></span>
	</a>
</div>
<!--Sidebar background-->
<div id="sidebarbg"></div>
<!--Sidebar content-->
<div id="sidebar">
	<div class="shortcuts">
		<ul>
			<shiro:hasPermission name="article:list">
			<li><a href="${ctx}/article/create/" title="New Article" class="tip">
					<span class="icon24 icomoon-icon-cabinet"></span>
			</a></li>
			</shiro:hasPermission>
		<shiro:hasPermission name="post:list">
			<li><a href="${ctx}/post/create/" title="Write post" class="tip"> <span
					class="icon24 icomoon-icon-pencil"></span>
			</a></li>
		</shiro:hasPermission>
			<shiro:hasPermission name="template:list">
		
			<li><a href="${ctx}/template/create/" title="Create Template" class="tip">
					<span class="icon24  icomoon-icon-construction"></span>
			</a></li>
			</shiro:hasPermission >
			<shiro:hasPermission name="channel:list">
			<li><a href="${ctx}/channel/create/" title="New Channel" class="tip"> <span
					class="icon24 icomoon-icon-coffee"></span>
			</a></li>
			</shiro:hasPermission>
			
		</ul>
	</div>
	<!-- End search -->
	<div class="sidenav">
		<div class="sidebar-widget" style="margin: -1px 0 0 0;">
			<h5 class="title" style="margin-bottom: 0">Navigation</h5>
		</div>
		<!-- End .sidenav-widget -->
		<div class="mainnav">
			<ul>
				<li><a href="${ctx}/admin/dashboard/"> <span
						class="icon16 icomoon-icon-dashboard"></span> DashBoard
				</a></li>

				<li><a href="#"> <span
						class="icon16 icomoon-icon-list-view-2"></span> Site
				</a>
					<ul class="sub">
						<shiro:hasPermission name="home-conf:edit">
							<li><a href="${ctx}/home-conf/edit/"> <span
									class="icon16 icomoon-icon-home-2"></span> Home Page
							</a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="channel:list">
							<li><a href="${ctx}/channel/list/"> <span
									class="icon16 icomoon-icon-wand"></span> Channel
							</a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="template:list">
							<li><a href="${ctx}/template/list/"> <span
									class="icon16 icomoon-icon-keyhole"></span> Template
							</a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="parameter-group:list">
							<li><a href="${ctx}/parameter-group/list/"> <span
									class="icon16 icomoon-icon-music-2"></span> Parameter
							</a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="parameter-group:list">
							<li><a href="${ctx}/menu-group/list/"> <span
									class="icon16 icomoon-icon-playlist"></span> Menu
							</a></li>
						</shiro:hasPermission>
					</ul>
					</li>
				 	<li><a href="#"> <span class="icon16 icomoon-icon-grid"></span>
						Blog
					</a>
					<ul class="sub">
						<shiro:hasPermission name="post:list">
							<li><a href="${ctx}/post/list/"> <span
									class="icon16 icomoon-icon-user"></span> Post
							</a></li>
						</shiro:hasPermission>							
						<shiro:hasPermission name="post-comment:list">
							<li><a href="${ctx}/post-comment/list/"> <span
									class="icon16 icomoon-icon-user-4"></span> Comments
							</a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="post-catetory:list">
							<li><a href="${ctx}/post-category/list/"> <span
									class="icon16 icomoon-icon-user"></span> Catetory
							</a></li>
						</shiro:hasPermission>		
						<shiro:hasPermission name="article:list">
							<li><a href="${ctx}/article/list/"> <span
									class="icon16 icomoon-icon-user-4"></span> Article
							</a></li>
						</shiro:hasPermission>
  					</ul></li>
				<li><a href="#"> <span class="icon16 icomoon-icon-pictures"></span>
						Gallery
				</a>
					<ul class="sub">
						<shiro:hasPermission name="album:list">
							<li><a href="${ctx}/album/list/"> <span
									class="icon16 icomoon-icon-camera"></span> Album
							</a></li>
						</shiro:hasPermission>
					</ul></li>
					
			
				<li><a href="#"> <span class="icon16   icomoon-icon-copy-2"></span>
					Contact
				</a>
					<ul class="sub">
						<shiro:hasPermission name="nbo-contact:list">
							<li><a href="${ctx}/nbo-contact/list/"> <span
									class="icon16 icomoon-icon-book"></span> Nbo contact
							</a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="nbo-enquiry:list">
							<li><a href="${ctx}/nbo-enquiry/list/"> <span
									class="icon16 icomoon-icon-book-2"></span> Nbo Enquiry
							</a></li>
						</shiro:hasPermission>
						
						<shiro:hasPermission name="nbo-enquiry:list">
							<li><a href="${ctx}/nbo-mail/list/"> <span
									class="icon16 icomoon-icon-book-2"></span> Nbo Mail List
							</a></li>
						</shiro:hasPermission>
						

				</ul></li>
			 
				<li><a href="#"> <span
						class="icon16 icomoon-icon-equalizer-2"></span> Resource
				</a>
					<ul class="sub">
						<shiro:hasPermission name="resource:list">
							<li><a href="${ctx}/resource/list/"> <span
									class="icon16 entypo-icon-folder"></span> Resource List
							</a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="photo-resource:list">
							<li><a href="${ctx}/photo-resource/list/"> <span
									class="icon16 entypo-icon-archive"></span> Photo List
							</a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="security-resource:list">
							<li><a href="${ctx}/security-resource/list/"> <span
									class="icon16 entypo-icon-archive"></span> Security Resource
									List
							</a></li>
						</shiro:hasPermission>
					</ul></li>

				<li><a href="#"> <span class="icon16 icomoon-icon-font"></span>
						Authority
				</a>
					<ul class="sub">
						<shiro:hasRole name="admin">
							<li><a href="${ctx}/security/user/list/"> <span
									class="icon16 icomoon-icon-user"></span> User
							</a></li>
							<li><a href="${ctx}/security/role/list/"> <span
									class="icon16 icomoon-icon-user-4"></span> Role
							</a></li>
							<li><a href="${ctx}/security/authority/list/"> <span
									class="icon16 icomoon-icon-key-3"></span> Authority
							</a></li>
						</shiro:hasRole>
					</ul></li>

				<li><a href="#"> <span class="icon16 icomoon-icon-cube"></span>
						System
				</a>
					<ul class="sub">
						<shiro:hasRole name="admin">
							<li><a href="${ctx}/monitoring-record/list/"> <span
									class="icon16 icomoon-icon-rocket"></span> Log
							</a></li>
						</shiro:hasRole>
						<shiro:hasPermission name="conf:edit">
							<li><a href="${ctx}/conf/edit/"> <span
									class="icon16 icomoon-icon-microphone"></span> Config
							</a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="email-conf:edit">
							<li><a href="${ctx}/email-conf/edit/"> <span
									class="icon16 icomoon-icon-cogs"></span> Email
							</a></li>
						</shiro:hasPermission>

						<shiro:hasPermission name="notify-event:list">
							<li><a href="${ctx}/notify-event/list/"> <span
									class="icon16  icomoon-icon-comments"></span> NotifyEvent
							</a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="language:list">
							<li><a href="${ctx}/language/list/"> <span
									class="icon16  icomoon-icon-comments"></span> Language
							</a></li>
						</shiro:hasPermission>

					</ul></li>


			</ul>
		</div>

	</div>
	<!-- End sidenav -->
</div>
<!-- End #sidebar -->